package hzn;

import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SolrConfig {
    @Bean
    public HttpSolrClient solrClient(){
        return new HttpSolrClient.
                Builder("http://hzn100:8983/solr/test").
                withConnectionTimeout(10000).withSocketTimeout(60000).
                build();
    }
}
